<link rel="stylesheet" href="css/theme_m.css"/>
<!-- <link rel="stylesheet" href="css/resetui.css"/> -->
<link rel="stylesheet" href="css/theme.css"/>
    <div class="wrapper">
	<h3 class="mc_title">
            <span class="mctit_1"><span class="mctit_2">首页编辑</span></span>
        </h3> 
        <div id="sceneryBox" class="ui-box mt10 fn-clear"> 
            <div class="ui-box-container">
                <div class="ui-box-content">
				<span class="" style="color:red; padding-left:10px">*目前导航栏中游记攻略和在线预订为不可编辑模块。其他模块可在下方自行编辑，更换导航栏图片需要找票付通团队技术支持</span>
                    <form name="mainForm" id="mainForm" class="ui-form" method="post" action="call/uploadThumbImage_c.php" enctype="multipart/form-data" target="hideFrame">
				<!-- 	<input type="hidden" name="thumb_img[]" id="thumb_img" value="'.$v.'"/> -->
                        <?
                            foreach($imgArr as $k=>$v){
                                if($k>0){
                                    echo '<input type="hidden" name="thumb_img[]" id="thumb_img'.($k+1).'" value="'.$v.'"/>';
                                }else{
                                    echo '<input type="hidden" name="thumb_img[]" id="thumb_img" value="'.$v.'"/>';
                                }
                            }
                        ?>
                        <input type="hidden" name="action" value="createNewTheme"/>
					    <input type="hidden" name="upload_mth" id="upload_mth" value="1"/>
                        <input type="hidden" name="ptype" value="<?=$ptype?>"/>
                        <?=$input_pack?>
                        <fieldset style="margin-top:10px;">
                         
                            <div class="ui-form-item_l">
                                <label class="ui-label">
                                    <span class="ui-form-required">栏目1：</span><?=$FieldList[$ptype]['title']?>
                                </label>
                                <input title="请填写<?=$FieldList[$ptype]['title']?>" class="ui-input check w100" data-required="2" id="mainTitle" name="mainTitle1" type="text" autofocus value="<?=$jdata['title']?>">
        
                            </div>
							<div class="ui-form-item_l">
                                <label class="ui-label">
                                    <span class="ui-form-required">栏目2：</span><?=$FieldList[$ptype]['title']?>
                                </label>
                                <input title="请填写<?=$FieldList[$ptype]['title']?>"  class="ui-input check w100" data-required="2" id="mainTitle" name="mainTitle2" type="text" autofocus value="<?=$jdata['title']?>">
        
                            </div>
							<div class="ui-form-item_l">
                                <label class="ui-label">
                                    <span class="ui-form-required">栏目3：</span><?=$FieldList[$ptype]['title']?>
                                </label>
                                <input title="请填写<?=$FieldList[$ptype]['title']?>" class="ui-input check w100" data-required="2" id="mainTitle" name="mainTitle3" type="text" autofocus value="<?=$jdata['title']?>">
        
                            </div>
							<div class="ui-form-item_l">
                                <label class="ui-label">
                                    <span class="ui-form-required">栏目4：</span><?=$FieldList[$ptype]['title']?>
                                </label>
                                <input title="请填写<?=$FieldList[$ptype]['title']?>" class="ui-input check w100" data-required="2" id="mainTitle" name="mainTitle4" type="text" autofocus value="<?=$jdata['title']?>">
        
                            </div>
							<div class="ui-form-item_l">
                                <label class="ui-label">
                                    <span class="ui-form-required">栏目5：</span><?=$FieldList[$ptype]['title']?>
                                </label>
                                <input title="请填写<?=$FieldList[$ptype]['title']?>" class="ui-input check w100" data-required="2" id="mainTitle" name="mainTitle5" type="text" autofocus value="<?=$jdata['title']?>">
        
                            </div>
                            </br>
							<div style="clear:both;"></div>
							  <!--thumb image-->
                            <?foreach($imgArr as $k=>$v):?>
                            <?if($k==0):?>
                            <div class="ui-form-item" style="position: relative;">
                                <label class="ui-label">
                                    <span class="ui-form-required"></span>四张轮播大图
                                </label>
                                <a id="lnk_prv" target="_blank" title="点击查看原图" href="<?=$v?>">
                                    <img style="width:240px;height:160px;" src="<?=$v?>" id="preview" />
                                </a>
                                <div class="uploadImg">
                                    <p class="title">重新上传缩略图：</p>
                                    <input type="file" name="upfile" id="imgup"/>
                                    <input type="button" id="BtnUpload" value="上传" class="ui-button ui-button-swhite"/>
                                    <p class="ui-form-explain">点击上传JPG或GIF格式的图片,<br/>建议图片尺寸：宽1900像素，高628像素</p>
                                    <p id="waitingUpload" class="ui-form-other"></p>
                                </div>
                                <p class="ui-form-explain">最佳尺寸为1900*628px</p>
                            </div>
                            <?else:?>
                            <div class="ui-form-item" style="position: relative;">
                                <!-- <label class="ui-label">
                                    <span class="ui-form-required">*</span>缩略图
                                </label> -->
                                <a id="lnk_prv<?=$k+1?>" target="_blank" title="点击查看原图" href="<?=$v?>">
                                    <img style="width:240px;height:160px;" src="<?=$v?>" id="preview<?=$k+1?>" />
                                </a>
                                <div class="uploadImg">
                                    <p class="title">重新上传缩略图：</p>
                                    <input type="file" name="upfile<?=$k+1?>" id="imgup<?=$k+1?>"/>
                                    <input type="button" id="BtnUpload<?=$k+1?>" value="上传" class="ui-button ui-button-swhite"/>
                                    <p class="ui-form-explain">点击上传JPG或GIF格式的图片,<br/>建议图片尺寸：宽1900像素，高628像素</p>
                                    <p id="waitingUpload<?=$k+1?>" class="ui-form-other"></p>
                                </div>
                                <p class="ui-form-explain">最佳尺寸为1900*628px</p>
                            </div>
                            <?endif;?>
                            <?endforeach;?>
                            
                            <div class="ui-form-item"> 
                                <label class="ui-label">
								推荐栏目模块
                                </label>
                                <input type="hidden"  name="column"/>
                                <select style="width:120px;" name="column_d">
                                    <option value="0" >栏目1</option>
                                    <option value="1" >栏目2</option>
                                    <option value="2" >栏目3</option>
                                    <option value="3" >栏目4</option>
                                    <option value="4" >栏目5</option>
                                </select>
                            </div>
							<div style="clear:both;"></div>
							<div class="ui-form-item" style="position: relative;">
                                <label class="ui-label">
                                    <span class="ui-form-required"></span>推荐栏目导航条
                                </label>
                                <div class="uploadImg1">
                                    <p class="title">重新上传缩略图：</p>
                                    <input type="file" name="upfile5" id="imgup5"/>
                                    <input type="button" id="BtnUpload5" value="上传" class="ui-button ui-button-swhite"/>
                                    <p class="ui-form-explain">点击上传JPG或GIF格式的图片,<br/>建议图片尺寸：宽550像素，高56像素</p>
                                    <p id="waitingUpload5" class="ui-form-other"></p>
                                </div>
                            </div>
							<div style="clear:both;"></div>
							 <div class="ui-form-item"> 
                                <label class="ui-label">
								产品栏目模块
                                </label>
                                <input type="hidden"  name="hot"/>
                                <select style="width:180px;" name="custom_hot">
                                    <option value="0" >所有产品取热度前三</option>
                                    <option value="1" >所有酒店取热度前三</option>
                                    <option value="2" >所有景区取热度前三</option>
                                    <option value="3" >所有餐饮取热度前三</option>
                                </select>
                            </div>
                            <div class="ui-form-item"><?=$saveBtn?></div>
                        </fieldset>
                    </form>
                </div>
            </div>
        </div> 
    </div>
    <ul id="mainAreas"></ul>
    <iframe src="about:blank" style="display: none;" id="hideFrame" name="hideFrame" frameborder="0"></iframe>
    <script type="text/javascript" src="js/prod_pub.js"></script>
    <script type="text/javascript" src="js/yunding/upjs_a.js"></script>